package com.weiweiqin.model;

import java.io.Serializable;
import java.util.Date;

public class Goods implements Serializable {

	private static final long serialVersionUID = -7970848646314840509L;

	private Integer id;

	private Integer isKj;

	private double kjPrice;
	
	private Integer brandsId;

	private String title = "";
	
	private String item;
	
	private String keyword;

	/**
	 * 已经失效
	 */
	private int browerNum;

	private String picName;
	
	private int picWidth;
	
	private int picHeight;
	
	private int picCompressHeight;
	
	private int picCompressWidth;

	/**
	 * 未使用
	 */
	private int picSize;
	
	/**
	 * 未使用
	 */
	private int picNum;

	private Date updateDate = new Date();
	
	/**
	 * 1、折扣专场 5、今日团购
	 */
	private int grade;
	
	private double price;
	
	/**
	 * 折扣后价格
	 */
	private double nowPrice;
	
	private double discount;
	
	/**
	 * 未使用
	 */
	private Date endDate = new Date();
	
	private int buyNum;
	
	private int mark;
	
	private String content;
	
	/**
	 * 已废弃
	 */
	private Date topDate;
	
	private int orderKey;
	
	private String recommend;
	
	private String scene;

	private String tips;

	//辅助对象，数据库不存在该字段，用于标识用户是否有收藏，0：未收藏，1：收藏
	private int isFav;
	
	/**
	 * 团购过期时间
	 */
	private Date expiredDate;

	//玩一次需要金币
	private int gameNum;
    //购买需要积分
	private int integral;
	//设置商品连续未中次数，用于控制超出次数后降低难度系数
	private int hard;
	//该商品连续未中次数超出后减少数量
	private int hardNum;
	//该商品连续未中次数超出后减少时间
	private int hardTime;
	//单独设置商品速度
	private double hardSpeed;

	public int getHard() {
		return hard;
	}

	public void setHard(int hard) {
		this.hard = hard;
	}

	public int getHardNum() {
		return hardNum;
	}

	public void setHardNum(int hardNum) {
		this.hardNum = hardNum;
	}

	public int getHardTime() {
		return hardTime;
	}

	public void setHardTime(int hardTime) {
		this.hardTime = hardTime;
	}

	public double getHardSpeed() {
		return hardSpeed;
	}

	public void setHardSpeed(double hardSpeed) {
		this.hardSpeed = hardSpeed;
	}

	public int getGameNum() {
		return gameNum;
	}

	public void setGameNum(int gameNum) {
		this.gameNum = gameNum;
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getBrowerNum() {
		return browerNum;
	}

	public void setBrowerNum(int browerNum) {
		this.browerNum = browerNum;
	}



	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getPicName() {
		return picName;
	}

	public void setPicName(String picName) {
		this.picName = picName;
	}

	public int getPicSize() {
		return picSize;
	}

	public void setPicSize(int picSize) {
		this.picSize = picSize;
	}

	public int getPicNum() {
		return picNum;
	}

	public void setPicNum(int picNum) {
		this.picNum = picNum;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getDiscount() {
		return discount;
	}

	public void setDiscount(double discount) {
		this.discount = discount;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public int getBuyNum() {
		return buyNum;
	}

	public void setBuyNum(int buyNum) {
		this.buyNum = buyNum;
	}

	public int getMark() {
		return mark;
	}

	public void setMark(int mark) {
		this.mark = mark;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getTopDate() {
		return topDate;
	}

	public void setTopDate(Date topDate) {
		this.topDate = topDate;
	}

	public int getOrderKey() {
		return orderKey;
	}

	public void setOrderKey(int orderKey) {
		this.orderKey = orderKey;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}
	

	public Integer getBrandsId() {
		return brandsId;
	}

	public void setBrandsId(Integer brandsId) {
		this.brandsId = brandsId;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("id=");
		sb.append(id);
		sb.append(":title=");
		sb.append(title);
		sb.append(":picName=");
		sb.append(picName);
		sb.append(":updateDate=");
		sb.append(updateDate);
		sb.append(":price=");
		sb.append(price);
		sb.append(":discount=");
		sb.append(discount);
		sb.append(":buyNum=");
		sb.append(buyNum);
		sb.append(":mark=");
		sb.append(mark);
		sb.append(":content=");
		sb.append(content);
		sb.append(":orderKey=");
		sb.append(orderKey);
		sb.append(":grade=");
		sb.append(grade);
		sb.append(":brandsId=");
		sb.append(brandsId);
		return sb.toString();
	}

	public int getPicWidth() {
		return picWidth;
	}

	public void setPicWidth(int picWidth) {
		this.picWidth = picWidth;
	}

	public int getPicHeight() {
		return picHeight;
	}

	public void setPicHeight(int picHeight) {
		this.picHeight = picHeight;
	}

	public int getPicCompressHeight() {
		return picCompressHeight;
	}

	public void setPicCompressHeight(int picCompressHeight) {
		this.picCompressHeight = picCompressHeight;
	}

	public int getPicCompressWidth() {
		return picCompressWidth;
	}

	public void setPicCompressWidth(int picCompressWidth) {
		this.picCompressWidth = picCompressWidth;
	}

	public double getNowPrice() {
		return nowPrice;
	}

	public void setNowPrice(double nowPrice) {
		this.nowPrice = nowPrice;
	}

	public String getRecommend() {
		return recommend;
	}

	public void setRecommend(String recommend) {
		this.recommend = recommend;
	}

	public String getScene() {
		return scene;
	}

	public void setScene(String scene) {
		this.scene = scene;
	}

	public String getTips() {
		return tips;
	}

	public void setTips(String tips) {
		this.tips = tips;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public Date getExpiredDate() {
		return expiredDate;
	}

	public void setExpiredDate(Date expiredDate) {
		this.expiredDate = expiredDate;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}


	public Integer getIsKj() {
		return isKj;
	}

	public void setIsKj(Integer isKj) {
		this.isKj = isKj;
	}

	public double getKjPrice() {
		return kjPrice;
	}

	public void setKjPrice(double kjPrice) {
		this.kjPrice = kjPrice;
	}

	public int getIntegral() {
		return integral;
	}

	public void setIntegral(int integral) {
		this.integral = integral;
	}

	public int getIsFav() {
		return isFav;
	}

	public void setIsFav(int isFav) {
		this.isFav = isFav;
	}
}
